Official Mod Threads: 

Qapla.com:
VB 4.x - http://www.qapla.com/mods/misc.php?do=producthelp&pid=googinarchivebop5vb4

vBulletin.org:
VB3.x - http://www.vbulletin.org/forum/misc.php?do=productcheck&pid=googinarchivebop5
VB4.x - http://www.vbulletin.org/forum/misc.php?do=productcheck&pid=googinarchivebop5vb4

Product: Google Analytics in Archive by BOP5

Developer: BirdOPrey5 on vBulletin.org / www.Qapla.com

Profile URL: http://www.vbulletin.org/forum/member.php?u=258922
Exclusive vBulletin Mods: http://www.qapla.com/mods/

Version 1.6 

If Upgrading from version 1.4 or 1.5 just import the product file, set "allow overwrite" to YES.

If Upgrading from 1.3 or below, UNINSTAL mod from Product Manager First!


The purpose of this mod is to output your Google Analytics code in your archive. Tradtionally administrators forget about the archive. Also, later I added code to put it in your forum pages too- why have two mods?

*****IMPORTANT******
You should always BACKUP your Database before installing a new mod. I have tested this but can't be responsible if something goes wrong. This is provided AS IS, USE AT YOUR OWN RISK. I will provide support as I am able. 

To Install: 
In Admin CP go to Plugins & Products -> Manage Products -> Add/Import Product
Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.
Click "Import"

To Upgrade:
UNINSTALL OLD VERSIONS FIRST (Ver 1.0 through ver 1.3 should be uninstalled before proceeding.)
In Admin CP go to Plugins & Products -> Manage Products -> Add/Import Product
Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.
Change "Allow Overwrite" to YES
Click "Import"

After the product has been imported:
Go to vBulletin Options -> Google Analytics in Archive (and Forum) by BOP5 (near the bottom) 
You MUST enable the mod before it will work. It is turned OFF by default. 

Set your options before you enable!

Analytics Code: Paste the Analytics code Google gives you into this box. It should look something like:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("XXXXXXXXXX");
pageTracker._setSessionTimeout("3600");
pageTracker._trackPageview();
</script>


Enable in Archive: Yes/No - Yes enables the analytics code in your archive. (The purpose of this mod!)

Enable in Forum: None - Disabled the code in the forums (if you already have it setup some other way)
                 Header - Recommended location by Google for the Asyncronous Code (the popular code)
                 Footer - Recommended location for non-Async (legacy) tracking code.